#ifndef WIDGET_H
#define WIDGET_H

#include "book.h"
#include <QWidget>
#include<QPaintEvent>
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public:
    void login(QString username,QString userpwd);
    void newBookWidget();
    void paintEvent(QPaintEvent *event) override;

private slots:
    void on_pushButton_clicked();

private:
    Ui::Widget *ui;

};
#endif // WIDGET_H
